package com.h3c.nem.task;

import com.h3c.nem.service.ITbOfferWorkerService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@JobHandler(value="offerWorkerWillJoinJob")
@Component
public class OfferWorkerWillJoinJob extends IJobHandler {

    @Resource
    private ITbOfferWorkerService iTbOfferWorkerService;

    @Override
    public ReturnT<String> execute(String s) throws Exception {
        XxlJobLogger.log("XXL-JOB, offerWorkerWillJoinJob.");
        iTbOfferWorkerService.offerWorkerWillJoinJob(s);
        return SUCCESS;
    }
}
